package com.ld.pojo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Author: Liudao
 * @Date: 2022-08-23-15:03
 * @Description:
 */
@Data
@Component
@PropertySource("classpath:ld/ld.properties")
@ConfigurationProperties(prefix = "book")
public class Book {
    private int bid;
    private String bname;
    private String author;
}
